What is @commitlint/config-angular-type-enum?
@commitlint/config-angular-type-enum is a configuration package for Commitlint that enforces commit message conventions based on the Angular commit message guidelines. It helps ensure that commit messages are consistent and follow a predefined format, which is particularly useful for maintaining a clean and understandable project history.
Enforcing Commit Message Types
This feature allows you to enforce specific commit message types such as 'feat', 'fix', 'docs', etc., based on Angular's commit message conventions. By extending the configuration, you ensure that all commit messages adhere to these types.
{
"extends": ["@commitlint/config-angular-type-enum"]
}
Customizing Commit Message Types
This feature allows you to customize the list of allowed commit message types. You can add or remove types as needed to fit your project's requirements.
{
"rules": {
"type-enum": [
2,
"always",
[
"feat",
"fix",
"docs",
"style",
"refactor",
"perf",
"test",
"build",
"ci",
"chore",
"revert"
]
]
}
}